package top.healthylife.mapper;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.healthylife.domain.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealMapper {

    @Insert("insert into t_setmeal_checkgroup values (#{setmeal_id},#{checkgroup_id})")
    void setSetmealAndCheckGroup(Map<String, Integer> map);

    void add(Setmeal setmeal);

    Page<Setmeal> selectByCondition(@Param("value") String queryString);

    @Select("select * from t_setmeal")
    List<Setmeal> findAll();


    Setmeal findById(Integer id);


    List<Map<String, Object>> findSetmealInOrder();


    List<Map<String, Object>> getHotSetmeals();
}
